package top.xiaoshuaila.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.xiaoshuaila.pojo.Admin;
import top.xiaoshuaila.service.IAdminService;

import java.util.List;

@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private IAdminService adminService;


    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public List<Admin>getAllAdmins(String keywords){
        return adminService.getAllAdmins(keywords);
    }
}
